import request from '/@/utils/request';

/**
 * 系统管理模块
 */
export function userApi() {
	return {
		studentListByPage: (data: object) => {
			return request({
				url: '/api/admin/user/studentListByPage',
				method: 'post',
				data,
			});
		},
		teacherListByPage: (data: object) => {
			return request({
				url: '/api/admin/user/teacherListByPage',
				method: 'post',
				data,
			});
		},
		managerListByPage: (data: object) => {
			return request({
				url: '/api/admin/user/managerListByPage',
				method: 'post',
				data,
			});
		},
		BOEUserListByPage: (data: object) => {
			return request({
				url: '/api/admin/user/BOEUserListByPage',
				method: 'post',
				data,
			});
		},
		noRoleUserListByPage: (data: object) => {
			return request({
				url: '/api/admin/user/noRoleUserListByPage',
				method: 'post',
				data,
			});
		},
		parentUserListByPage: (data: object) => {
			return request({
				url: '/api/admin/user/parentUserListByPage',
				method: 'post',
				data,
			});
		},
		findRoleListByUserId: (data: object) => {
			return request({
				url: '/api/admin/role/findRoleListByUserId',
				method: 'post',
				data,
			});
		},
		saveOrUpdateStudent: (data: object) => {
			return request({
				url: '/api/admin/user/saveOrUpdateStudent',
				method: 'post',
				data,
			});
		},
		saveOrUpdateManager: (data: object) => {
			return request({
				url: '/api/admin/user/saveOrUpdateManager',
				method: 'post',
				data,
			});
		},
		saveOrUpdateBOEUser: (data: object) => {
			return request({
				url: '/api/admin/user/saveOrUpdateBOEUser',
				method: 'post',
				data,
			});
		},
		saveOrUpdateTeacher: (data: object) => {
			return request({
				url: '/api/admin/user/saveOrUpdateTeacher',
				method: 'post',
				data,
			});
		},
		saveOrUpdateTeach: (data: object) => {
			return request({
				url: '/api/admin/user/saveOrUpdateTeach',
				method: 'post',
				data,
			});
		},
		saveUserRoleRelationship: (data: object) => {
			return request({
				url: '/api/admin/role/saveUserRoleRelationship',
				method: 'post',
				data,
			});
		},
		studentRemoveById: (data: object) => {
			return request({
				url: '/api/admin/user/studentRemoveById',
				method: 'post',
				data,
			});
		},
		teacherRemoveById: (data: object) => {
			return request({
				url: '/api/admin/user/teacherRemoveById',
				method: 'post',
				data,
			});
		},
		managerRemoveById: (data: object) => {
			return request({
				url: '/api/admin/user/managerRemoveById',
				method: 'post',
				data,
			});
		},
		BOERemoveById: (data: object) => {
			return request({
				url: '/api/admin/user/BOERemoveById',
				method: 'post',
				data,
			});
		},
		teachRemoveById: (data: object) => {
			return request({
				url: '/api/admin/user/teachRemoveById',
				method: 'post',
				data,
			});
		},
		UserRoleRelationshipRemoveById: (data: object) => {
			return request({
				url: '/api/admin/role/UserRoleRelationshipRemoveById',
				method: 'post',
				data,
			});
		},
		saveOrUpdateParent: (data: object) => {
			return request({
				url: '/api/admin/user/saveOrUpdateParent',
				method: 'post',
				data,
			});
		},
		parentRemoveById: (data: object) => {
			return request({
				url: '/api/admin/user/parentRemoveById',
				method: 'post',
				data,
			});
		},
		studentImport: (data: object) => {
			return request({
				url: '/api/admin/user/studentImport',
				method: 'post',
				data,
			});
		},
		teacherImport: (data: object) => {
			return request({
				url: '/api/admin/user/teacherImport',
				method: 'post',
				data,
			});
		},
		studentImportMQMessage: (data: object) => {
			return request({
				url: '/api/admin/user/studentImportMQMessage',
				method: 'post',
				data,
			});
		},
		teacherImportMQMessage: (data: object) => {
			return request({
				url: '/api/admin/user/teacherImportMQMessage',
				method: 'post',
				data,
			});
		},
		savePermission: (data: object) => {
			return request({
				url: '/api/admin/user/savePermission',
				method: 'post',
				data,
			});
		},
		getManagerUserPhone: (data: object) => {
			return request({
				url: '/api/admin/user/getManagerUserPhone',
				method: 'post',
				data,
			});
		},
		getLoginSms: (data: object) => {
			return request({
				url: '/api/admin/user/getLoginSms',
				method: 'post',
				data,
			});
		},
		checkLoginSms: (data: object) => {
			return request({
				url: '/api/admin/user/checkLoginSms',
				method: 'post',
				data,
			});
		},
		resetUserPassword: (data: object) => {
			return request({
				url: '/api/admin/user/resetUserPassword',
				method: 'post',
				data,
			});
		},


	};
}
